#pragma once
#include <stdint.h>
#include <stdbool.h>
#include "display_ctrl.h"
#include "localize_string.h"
#define LOCALIZE_CODE_PATH "localize_code.cfg"
typedef enum __resource_type_t
{
    resource_type_localize,
    resource_type_resource,
} resource_type_t;
bool open_resource_image(resource_type_t type, int key, int file_index, int x, int y);
void localize_get_res_name(localize_string_key_t key, uint8_t *buff, uint32_t buff_size);
void set_localize_code(uint8_t *code, uint32_t code_len);
void get_localize_code(uint8_t *buff, uint32_t buff_len);
bool is_localize_file(uint8_t *name, uint32_t name_len);
void localize_clear(char const *const *reserve_codes, int reserve_codes_count);
void localize_init(void);
